<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/admintop.jsp"%>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<%@ include file="/jsp/jscommom.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>黑名单管理</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/checkeducation.js"></script>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<script type="text/javascript">
function doblack(url){
window.open(url,"_blank");
}
</script>
	<body>
		<html:form action="/com/struts/system/queryblack" method="post">
			<table width="97%" border="0" align="center" cellpadding="0"
				cellspacing="1" class="line1">
				<tr>
					<td colspan="2" class="titlebg">
						黑名单管理
					</td>
				</tr>
				<tr>
					<td class="mtdtitle1">
						公司名称:
					</td>
					<td class="mtdtextleft">
						<html:text property="corporName" styleClass="input1"></html:text>
					</td>
				</tr>
				<tr>
					<td class="mtdtitle1" colspan="2">
						<input type="submit" value="查询" class="tbutton"/>
						<input type="reset" value="重置"  class="tbutton"/>
					</td>
				</tr>
			</table>

			<table width="97%" border="0" align="center" cellpadding="0"
				cellspacing="0" class="line1">
				<tr>
					<td>
						<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="1" class="line1">
							<tr>
								<td class="mtdtitle1">
									编号
								</td>
								<td class="mtdtitle1">
									公司名称
								</td>

								<td class="mtdtitle1">
									状态
								</td>
							</tr>
							<logic:empty name="page" property="sqlList">
								<tr>
									<td colspan="2" class="mtdtextcenterwrite">
										没有可显示的内容！
									</td>
								</tr>
							</logic:empty>
							<logic:notEmpty name="page" property="sqlList">
								<logic:iterate type="com.ibatis.po.corpor.TCorporation"
									id="blackList" name="page" property="sqlList">
									<tr style="cursor:hand"
										onclick="doblack('/com/struts/system/editblack.do?ID=${blackList.id}')">
										<td class="mtdtextcenterwrite">
											${blackList.id}
										</td>
										<td class="mtdtextcenterwrite"> 
											${blackList.corporationName}
										</td>
										<td class="mtdtextcenterwrite">
											<logic:equal name="blackList" property="blackList" value="1">黑名单</logic:equal>
											<logic:equal name="blackList" property="blackList" value="0">正常</logic:equal>
										</td>
									</tr>
								</logic:iterate>
							</logic:notEmpty>

							<tr>
								<td colspan="3" class="mtdtitle1">
									<table width='100%'>
										<tr>
											<td class="left">
												<%=mPage.getPageInfo()%>
											</td>
											<td class="right">
												<%=mPage.getTurnPageLink()%>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</html:form>
	</body>
</html>
